import type { BasePageParams } from '@/types/base'
import { PlatformType, ProjectType } from '@/constants/sourcemap'
import { User } from '@/types/user'

export interface SourcemapListParams extends BasePageParams {
  platformType?: PlatformType
  customerName?: string | null
  projectType?: ProjectType
}

export interface Sourcemap {
  id?: number
  filename?: string
  filepath?: string
  platformType?: PlatformType
  customerName?: string | null
  projectType?: ProjectType
  version: string
  productVersion: string
  file?: File
}

export interface SourcemapErrorParams {
  bugId: string
  line: number
  column: number
  sourcemapId: number
}

export interface SourcemapErrorResult {
  line: number
  column: number
  source: string
  sourceContent: string
  sourceLine: string
}
